from django.urls import path
from .views import (
    OverviewStatsAPIView,
    UnitStatusDistributionAPIView,
    ContractGrowthTrendAPIView,
    CompanyTypeDistributionAPIView,
    RepairHotspotsAPIView,
    BuildingStatusAPIView,
    InvestmentTrendAPIView,
    NotificationListAPIView,
    AssetSalesLeasingAPIView,
)

urlpatterns = [
    path('overview/', OverviewStatsAPIView.as_view(), name='analytics-overview'),
    path('unit-status-distribution/', UnitStatusDistributionAPIView.as_view(), name='analytics-unit-status'),
    path('contract-growth-trend/', ContractGrowthTrendAPIView.as_view(), name='analytics-contract-growth'),
    path('company-type-distribution/', CompanyTypeDistributionAPIView.as_view(), name='analytics-company-type'),
    path('repair-hotspots/', RepairHotspotsAPIView.as_view(), name='analytics-repair-hotspots'),
    path('building-status/', BuildingStatusAPIView.as_view(), name='analytics-building-status'),
    path('investment-trend/', InvestmentTrendAPIView.as_view(), name='analytics-investment-trend'),
    path('notifications/', NotificationListAPIView.as_view(), name='analytics-notifications'),
    path('asset-sales-leasing/', AssetSalesLeasingAPIView.as_view(), name='analytics-asset-sales-leasing'),
] 